<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>

<script type="text/javascript">

  const url = 'http://localhost:8001/user/get'
  function getUser(url) {
    fetch(url).then(res => {
      console.log('res', res);
      let json = res.json()
      console.log('json', json)
      return json
    }).then(data => console.log('data', data))
  }
  getUser(url)
</script>
</html>